package com.mes.biz.domain;

import javax.validation.Valid;
import java.math.BigDecimal;
import javax.validation.constraints.NotBlank;
import lombok.Data;
import com.mes.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.mes.common.utils.log.annotation.FieldRemark;
import com.mes.common.utils.log.annotation.LogField;
import com.mes.common.annotation.Excel;

/**
 * 收款明细对象 biz_payment_detail
 * @author wy
 * @email wy
 * @date 2023-07-10
 */
@Data
public class BizPaymentDetail extends BaseEntity<BizPaymentDetail>
{
    private static final long serialVersionUID = 1L;

    /** 收款单id */
    @Excel(name = "收款单id")
    @LogField
    @FieldRemark(name = "收款单id",field = "paymentId")
    private String paymentId;

    /** 付款金额 */
    @Excel(name = "付款金额")
    @LogField
    @FieldRemark(name = "付款金额",field = "payAmount")
    private BigDecimal payAmount;

    /** 付款账户1微信2支付宝3银行卡 */
    @Excel(name = "付款账户1微信2支付宝3银行卡")
    @LogField
    @FieldRemark(name = "付款账户1微信2支付宝3银行卡",field = "payAccount")
    private String payAccount;

    /** 租户id */
    @Excel(name = "租户id")
    @NotBlank(message = "租户id不允许为空")
    @LogField
    @FieldRemark(name = "租户id",field = "tenantId")
    private String tenantId;

    /** 抹零金额 */
    @Excel(name = "抹零金额")
    @LogField
    @FieldRemark(name = "抹零金额",field = "zeroAmount")
    private BigDecimal zeroAmount;

    public void setPaymentId(String paymentId)
    {
        this.paymentId = paymentId;
    }

    public String getPaymentId()
    {
        return paymentId;
    }

    public void setPayAmount(BigDecimal payAmount)
    {
        this.payAmount = payAmount;
    }

    public BigDecimal getPayAmount()
    {
        return payAmount;
    }

    public void setPayAccount(String payAccount)
    {
        this.payAccount = payAccount;
    }

    public String getPayAccount()
    {
        return payAccount;
    }

    public void setTenantId(String tenantId)
    {
        this.tenantId = tenantId;
    }

    public String getTenantId()
    {
        return tenantId;
    }

    public void setZeroAmount(BigDecimal zeroAmount)
    {
        this.zeroAmount = zeroAmount;
    }

    public BigDecimal getZeroAmount()
    {
        return zeroAmount;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("paymentId", getPaymentId())
            .append("payAmount", getPayAmount())
            .append("payAccount", getPayAccount())
            .append("tenantId", getTenantId())
            .append("zeroAmount", getZeroAmount())
            .append("remark", getRemark())
            .append("id", getId())
            .append("createBy", getCreateBy())
            .append("createDept", getCreateDept())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("updateIp", getUpdateIp())
            .append("version", getVersion())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
